<%@ page language="java" import="java.util.*" pageEncoding="utf8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<div class="DaoHang">您当前位置：<a href="/">淘商城</a> -&gt; 确认订单</div>


<div class="cartbox">
    <c:if test="${niit_bc_cart != null }">
        <div class="logintips">亲爱的${niit_bc_user.userName }! 您的订单信息-> ：&nbsp;有图书<font
                color=green>${niit_bc_cart.bookNum }</font>&nbsp;件
        </div>
    </c:if>

    <div class="ShoppingCart">
        <form action="Ok?orderId=${OrderId }" method="POST" name="check">
            <table border="0" cellspacing="1" cellpadding="1" align="center" width="100%" class="border">
                <tr class='title' height="25">
                    <td width="10%" align="center">编 号</td>
                    <td align="center">商 品 名 称</td>
                    <td width="15%" align="center">数 量</td>
                    <td width="15%" align="center">单价</td>
                    <td width="20%" align="center">总 计</td>
                </tr>
                <c:if test="${item == null }">
                    <tr class='tdbg'>
                        <td colspan=5>您的购物车没有商品!</td>
                    </tr>
                </c:if>
                <tr style="height:15px;">
                    <td colspan=8>&nbsp;</td>
                </tr>
                <c:if test="${item != null }">
                    <c:forEach items="${item }" var="item">

                        <tr class='tdbg' height="25" align="center">
                            <td><input type="CheckBox" name="cartid" value="2" Checked></td>
                            <td align="left" valign="top">
                                <img src="${item.bookPhoto }" alt="${item.bookName }" width="50" height="50"
                                     align="left" style="border:1px solid #ccc;padding:2px"/>
                                    ${item.bookName }<br/>
                            </td>
                            <td><input type="Text" name="Q_2" value="${item.itemBookNum }" size="5"
                                       style="text-align:center" class="textbox"></td>
                            <td>￥${item.bookPrice }</td>
                            <td>￥${item.itemPrice }</td>
                        </tr>


                    </c:forEach>
                </c:if>

                <tr class='tdbg'>
                    <td colspan="4" align="center">
                        <font color=red><strong>以上是您订单中的商品信息，请核对!</strong>&nbsp;</font>
                    </td>
                    <td height="25" align="center">合计：<font color="#FF6600">￥${itemPrice }</font>&nbsp;元</td>
                </tr>

            </table>
        </form>
    </div>
</div>

<div class="clear"></div>


<div class="cartborder">
    <div class="titleinput">请认真核对你的收货信息</div>
    <div class="contactbox">
        <ul>
            <c:if test="${orderBean!=null }">
                <li>收货人姓名：${orderBean.orderName }</li>
                <li>收货人地址：${orderBean.orderAdress }</li>
                <li>收货人邮编：${orderBean.orderPost}</li>
                <li>收货人邮箱：${orderBean.orderEmail }</li>
                <li>收货人手机：${orderBean.orderMobile }</li>
                <li>收货人QQ：${orderBean.orderQq }</li>
                <li>付款方式：${orderBean.orderMoneyWay }</li>
                <li>送货方式：${orderBean.orderDeliveryWay }</li>
                <li>备注/留言：${orderBean.orderDetail }</li>
            </c:if>
        </ul>
    </div>
    <div class="but">
        <input type="image" src="images/sure.gif" border="0" alt="确认订单"
               onclick="javascript:void(0);window.location.href='Ok?orderId=${OrderId }&allPrice=${itemPrice }'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    </div>
</div>